import { defineConfig } from 'umi';

export default defineConfig({
  theme: {
    'primary-color': '#5A9DFE',
  },
  locale: { antd: true },
  routes: [
    {
      path: '/',
      component: '@/layout',
      routes: [
        {
          path: '/user',
          wrappers: ['@/wrappers/user_auth'],
          component: '@/pages/user',
          routes: [
            {
              path: './login',
              component: '@/pages/user/componments/login',
            },
            {
              path: './freelogin',
              component: '@/pages/user/componments/free_pwd_login',
            },
            {
              path: './register',
              component: '@/pages/user/componments/register',
            },
            {
              path: './forget',
              component: '@/pages/user/componments/forget_pwd',
            },
          ],
        },
        {
          path: '/',
          component: '@/pages/index',
        },
        {
          path: '/appreciation',
          component: '@/pages/appreciation/index',
        },
        {
          path: '/newsAndAnno',
          component: '@/pages/newsAndAnno/newsAndAnno',
        },
        {
          path: '/game',
          component: '@/pages/game/game',
        },{
          path: '/info',
          component: '@/pages/myinfo/index',
        },{
          path: '/appInfo',
          component: '@/pages/appreciation/appinfo/index',
        },{
          path: '/newsInfo',
          component: '@/pages/newsAndAnno/newsInfo/index',
        },
        {
          path: '/signUp',
          component: '@/pages/game/signUp/index',
        },
        {
          path: '/link',
          component: '@/pages/link/index',
        },
        {
          path: '/contact',
          component: '@/pages/contact/index',
        },
        {
          path: '/message',
          component: '@/pages/message/message',
        }, {
          path: '/map',
          component: '@/pages/map/map',
        },
        {
          path: '/noticeInfo',
          component: '@/pages/index/noticeInfo/index',
        },
      ],
    },
  ],
});
